package com.TanNgee.service.impl;

import com.TanNgee.dao.UserDao;
import com.TanNgee.service.UserService;

/**
 * @author 陈毅
 * @create 2022/4/24 10:09
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserServiceImpl() {
//        this.userdao = userdao;
        System.out.println("userService被创建了");
    }


    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void add() {
        System.out.println("UserService…");
        userDao.add();
    }
}
